All Questions
Tagged with selenium-chromedriverjavascript
531 questions
1vote
0answers
32views
executing javascript function with chromedriver and c#
I have a button that I need to click to open up file explorer and select a file. The entire page is JavaScript functions and there is no button id or name that comes up in the html I tried: myField = ...
1vote
0answers
137views
Selenium 4 (Node.js): How to Capture Network Requests? (getDevTools, createCDPConnection)
Selenium 4 (Node.js) - TypeError: driver.manage(...).getDevTools is not a function I'm trying to capture network requests and responses in Selenium 4 using Node.js and Chrome. I'm encountering the ...
0votes
1answer
44views
Chrome controlled by Chromedriver silenced alert popup
I used the following html to test an alert pop up. If a user fills the form, but then switches URL, instead of submitting the form, the page will pop up an alert <!DOCTYPE html> <html> &...
0votes
1answer
114views
Button click not working in seleniumheadless mode as expected
I am using selenium script to test login flow. After entering username, I need to click next button and it should redirect me to Identity provider page. If I don't run my selenium script in headless ...
0votes
0answers
26views
NoSuchElementError: no such element: Unable to locate element: {"method":"xpath","selector":"//select[@id='InputPrefix']"}
when i created seperate stepdefinition classes like Given, When,Then the automation script usin findElement etc.. is not reading in when and then step.js but its reading in given.js file what mistake ...
0votes
0answers
20views
Selenium JavaScript - cannot continue loop of events after opening and closing new tab
I'm building an automated E2E test for an application that lists a bunch of properties. The way I want this flow to work is: Homepage is a list of properties with links to individual property ...
0votes
0answers
293views
How to Intercept and Modify JavaScript Responses Before Execution Using Chrome DevTools Protocol (CDP)
I'm working on a project where I need to intercept JavaScript code that the browser receives but prevent it from executing immediately. I want to modify the JavaScript code to inject a custom worker ...
0votes
0answers
117views
Emulating Android Browser Properties Using MITMProxy and Undetected-Driver: Inconsistent Results
I'm working on a project that involves disguising a browser as an Android device to pass a web-based fingerprinting test provided by CreepJS. The goal is to change various browser properties such as ...
0votes
1answer
101views
WebDriverError: Error forwarding the new session Error forwarding the request Operation timed out
I'm encountering the following error when trying to run my selenium testcase using selenium grid. It's really just a modified selenium example from their docs. ChromeDriver is 123.0.6312.58 Chrome is ...
-1votes
1answer
180views
How to clear the text fields using the javascriptExecutor in selenium?
The following code isused to clear the text box value or we can use this to clear the text box in selenium if the clear() function is not working use below code ` if (maturityDate.compareTo(...
0votes
1answer
231views
View browser video with gitlab CI using selenium/standalone-chrome
I have a Docker Desktop setup for running local tests using the selenium/standalone-chrome Docker container, which serves two ports - 4444 for Selenium and 7900 for a noVNC player where I can see the ...
1vote
1answer
180views
Scraping A Website With An Embedded Javascript With Selenium
I am new to Selenium and trying to scrape the contents of this website. But, the site seems to be based on a template and a Javascript that is run to populate it and I don't know how to access the ...
0votes
0answers
407views
Get console logs in Chrome with Selenium 4 and Javascript
I am using selenium for a super simple test, using chrome; I am trying to get in the chrome tools some console.logs for debugging, but for some reasons logs are not available at all. I also tried ...
0votes
0answers
35views
Having trouble ensuring JavaScript events are triggered during Selenium scraping
Process: I am trying to scrape data within a web page. The process involves me inputting text in a search box, then selecting the top option from a dropdown -- selecting an option then triggers the ...
0votes
0answers
199views
While closing the browser tab in Selenium run, Pop-up alert not displayed, but pop-up is displayed when manually closing the browser tab
Our application has a popup alert built-in if user closes the browser tab. It works when I manually close the Chrome browser tab, but when I use Selenium methods like driver.close() or quit(), or Keys(...